import {
  patientCardTypeBaseObj,
  patientRelationBaseObj,
  genderBaseObj,
  marriageBaseObj,
  subscribeTypeBaseObj,
  orderStatusBaseObj,
  BaseObj,
} from '@/config/lvtongConfig/dictionary';
import { baseUtil } from '@health/utils';
/**
 *
 * @param {*} id 10401
 * @returns 身份证 || ''
 */

export const formatPatientCardType = (id) => {
  return patientCardTypeBaseObj()[id]?.label || '';
};
export const formatPatientRelation = (id) => {
  return patientRelationBaseObj()[id]?.label || '';
};
export const formatGender = (id) => {
  return genderBaseObj()[id]?.label || '';
};
export const formatMarriage = (id) => {
  return marriageBaseObj()[id]?.label || '';
};
export const formatSubscribeType = (id) => {
  return subscribeTypeBaseObj()[id]?.label || '';
};
export const formatSubscribeTypeSpecial = (id) => {
  return subscribeTypeBaseObj()[id] || {};
};
export const formatOrderStatus = (id) => {
  return orderStatusBaseObj()[id]?.label || '';
};
export const formatOrderStatusSpecial = (id) => {
  return orderStatusBaseObj()[id] || {};
};
export const formatAll = (id) => {
  if (baseUtil.isBoolean(id)) {
    id = id ? '11302' : '11301';
  }
  return BaseObj()[id]?.label || '';
};
